
<%@ page import="sistema.Vendedor" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'vendedor.label', default: 'Vendedor')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
  <a href="#show-vendedor" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
  <div class="nav" role="navigation">
    <ul>
      <li><g:link class="home" controller="admin" action="index">Home</g:link></li>
      <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
      <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
    </ul>
  </div>
  <div id="show-vendedor" class="content scaffold-show" role="main">
    <h1><g:message code="default.show.label" args="[entityName]" /></h1>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list vendedor">

      <g:if test="${vendedorInstance?.nome}">
        <li class="fieldcontain">
          <span id="nome-label" class="property-label"><g:message code="vendedor.nome.label" default="Nome" /></span>

          <span class="property-value" aria-labelledby="nome-label"><g:fieldValue bean="${vendedorInstance}" field="nome"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.dataNasc}">
        <li class="fieldcontain">
          <span id="dataNasc-label" class="property-label"><g:message code="vendedor.dataNasc.label" default="Data Nasc" /></span>

          <span class="property-value" aria-labelledby="dataNasc-label"><g:formatDate date="${vendedorInstance?.dataNasc}" /></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.estadoCivil}">
        <li class="fieldcontain">
          <span id="estadoCivil-label" class="property-label"><g:message code="vendedor.estadoCivil.label" default="Estado Civil" /></span>

          <span class="property-value" aria-labelledby="estadoCivil-label"><g:fieldValue bean="${vendedorInstance}" field="estadoCivil"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.rg}">
        <li class="fieldcontain">
          <span id="rg-label" class="property-label"><g:message code="vendedor.rg.label" default="Rg" /></span>

          <span class="property-value" aria-labelledby="rg-label"><g:fieldValue bean="${vendedorInstance}" field="rg"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.cpf}">
        <li class="fieldcontain">
          <span id="cpf-label" class="property-label"><g:message code="vendedor.cpf.label" default="Cpf" /></span>

          <span class="property-value" aria-labelledby="cpf-label"><g:fieldValue bean="${vendedorInstance}" field="cpf"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.endereco}">
        <li class="fieldcontain">
          <span id="endereco-label" class="property-label"><g:message code="vendedor.endereco.label" default="Endereco" /></span>

          <span class="property-value" aria-labelledby="endereco-label"><g:fieldValue bean="${vendedorInstance}" field="endereco"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.enderecoNum}">
        <li class="fieldcontain">
          <span id="enderecoNum-label" class="property-label"><g:message code="vendedor.enderecoNum.label" default="Endereco Num" /></span>

          <span class="property-value" aria-labelledby="enderecoNum-label"><g:fieldValue bean="${vendedorInstance}" field="enderecoNum"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.cep}">
        <li class="fieldcontain">
          <span id="cep-label" class="property-label"><g:message code="vendedor.cep.label" default="Cep" /></span>

          <span class="property-value" aria-labelledby="cep-label"><g:fieldValue bean="${vendedorInstance}" field="cep"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.cidade}">
        <li class="fieldcontain">
          <span id="cidade-label" class="property-label"><g:message code="vendedor.cidade.label" default="Cidade" /></span>

          <span class="property-value" aria-labelledby="cidade-label"><g:fieldValue bean="${vendedorInstance}" field="cidade"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.estado}">
        <li class="fieldcontain">
          <span id="estado-label" class="property-label"><g:message code="vendedor.estado.label" default="Estado" /></span>

          <span class="property-value" aria-labelledby="estado-label"><g:fieldValue bean="${vendedorInstance}" field="estado"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.telefone}">
        <li class="fieldcontain">
          <span id="telefone-label" class="property-label"><g:message code="vendedor.telefone.label" default="Telefone" /></span>

          <span class="property-value" aria-labelledby="telefone-label"><g:fieldValue bean="${vendedorInstance}" field="telefone"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.celular}">
        <li class="fieldcontain">
          <span id="celular-label" class="property-label"><g:message code="vendedor.celular.label" default="Celular" /></span>

          <span class="property-value" aria-labelledby="celular-label"><g:fieldValue bean="${vendedorInstance}" field="celular"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.operadoraCel}">
        <li class="fieldcontain">
          <span id="operadoraCel-label" class="property-label"><g:message code="vendedor.operadoraCel.label" default="Operadora Cel" /></span>

          <span class="property-value" aria-labelledby="operadoraCel-label"><g:fieldValue bean="${vendedorInstance}" field="operadoraCel"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.email1}">
        <li class="fieldcontain">
          <span id="email1-label" class="property-label"><g:message code="vendedor.email1.label" default="Email1" /></span>

          <span class="property-value" aria-labelledby="email1-label"><g:fieldValue bean="${vendedorInstance}" field="email1"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.email2}">
        <li class="fieldcontain">
          <span id="email2-label" class="property-label"><g:message code="vendedor.email2.label" default="Email2" /></span>

          <span class="property-value" aria-labelledby="email2-label"><g:fieldValue bean="${vendedorInstance}" field="email2"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.msn}">
        <li class="fieldcontain">
          <span id="msn-label" class="property-label"><g:message code="vendedor.msn.label" default="Msn" /></span>

          <span class="property-value" aria-labelledby="msn-label"><g:fieldValue bean="${vendedorInstance}" field="msn"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.skype}">
        <li class="fieldcontain">
          <span id="skype-label" class="property-label"><g:message code="vendedor.skype.label" default="Skype" /></span>

          <span class="property-value" aria-labelledby="skype-label"><g:fieldValue bean="${vendedorInstance}" field="skype"/></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.redeSocial}">
        <li class="fieldcontain">
          <span id="redeSocial-label" class="property-label"><g:message code="vendedor.redeSocial.label" default="Rede Social" /></span>

          <span class="property-value" aria-labelledby="redeSocial-label"><g:fieldValue bean="${vendedorInstance}" field="redeSocial"/></span>

        </li>
      </g:if>


      <g:if test="${vendedorInstance?.dateCreated}">
        <li class="fieldcontain">
          <span id="dateCreated-label" class="property-label"><g:message code="vendedor.dateCreated.label" default="Date Created" /></span>

          <span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${vendedorInstance?.dateCreated}" /></span>

        </li>
      </g:if>

      <g:if test="${vendedorInstance?.lastUpdated}">
        <li class="fieldcontain">
          <span id="lastUpdated-label" class="property-label"><g:message code="vendedor.lastUpdated.label" default="Last Updated" /></span>

          <span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${vendedorInstance?.lastUpdated}" /></span>

        </li>
      </g:if>
      <li class="fieldcontain">
        <span id="lastUpdated-label" class="property-label">
          ANEXOS: </br>
        </span>
      <g:each in="${anexos}">
        <span class="property-value" aria-labelledby="lastUpdated-label">
          <g:link controller="vendedor" action="download" id="${it.id}">${ it.nome }</g:link>
        </span>
      </g:each>
      </li>

    </ol>
    <g:form>
      <fieldset class="buttons">
        <g:hiddenField name="id" value="${vendedorInstance?.id}" />
        <g:link class="edit" action="edit" id="${vendedorInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
        <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
      </fieldset>
    </g:form>
  </div>
</body>
</html>
